<script setup lang="ts">
const defineEmits1 = defineEmits(['xxx'])
console.log(defineEmits1)
const handler = () => {
  defineEmits1('xxx', 'dance')
}
</script>

<template>
  <div class="son">
    <p>儿子2</p>
    <button @click="handler">点我触发自定义事件</button>
  </div>
</template>

<style scoped>
.son {
  width: 400px;
  height: 200px;
  background: pink;
}
</style>
